package com.lokyiu.lesson1.domain;

public class SaySomething{
	private String text;
	/**
	 * @param args
	 */

	public SaySomething(){
		setText("...");
	}
	
	public SaySomething(String text){
		if (text.equals("greeting")){
			setText("Hello, How are you?");		
		}else if(text.equals("happy")){
			setText("What a wonderful day :)");		
		}else if(text.equals("unhappy")){
			setText("get away from me :(");		
		}
	}

	public void setText(String text){
		this.text=text;
	}
	
	public String getText(){
		return this.text;
	}
	
}
